<?php
require_once('../../shared/egonframework/Model.class.php');
require_once('../../shared/egonframework/Factory.class.php');

class sample extends model {

	public final  function __construct() {
	//app names
		$this->set_name('sample');
		$this->set_table_name('sample');

		$this->set_default_paths();
		$this->set_default_dns();

		$this->paths['sample'] = new Path('sample');
		$this->paths['sample']->set_abs_path('/var/devwww/apps/sample/');

	//set up the app vars		
		$this->vars['ROWID'] = new PrimaryKey('ROWID');
		$this->vars['ROWID']->set_title('ROWID');

		$this->vars['f_name'] = new StringVar('f_name');
		$this->vars['f_name']->set_title('f_name');
		$this->vars['f_name']->set_min_size(2);
		$this->vars['f_name']->set_max_size(10);

		$this->vars['l_name'] = new StringVar('l_name');
		$this->vars['l_name']->set_title('a_string');
		$this->vars['l_name']->set_min_size(2);
		$this->vars['l_name']->set_max_size(10);
		

	}

}

?>
